num = eval(input("请输入一个整数: "))
if num%2 == 0 and num%3 == 0:
    print('Yes')
else:
    print('No')






